//
//  HomeIMGviewCell.m
//  HiCar
//
//  Created by 丁一 on 2018/12/26.
//  Copyright © 2018 丁一. All rights reserved.
//

#import "HomeIMGviewCell.h"

@implementation HomeIMGviewCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        if (!_logo) {
            _logo                     = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
            _logo.contentMode         = UIViewContentModeScaleAspectFill;
            _logo.layer.cornerRadius  = 2;
            _logo.layer.masksToBounds = YES;
        }
        [self addSubview:_logo];
        
        [_logo mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).with.offset(5);
            make.top.equalTo(self).with.offset(5);
            make.bottom.equalTo(self).with.offset(-5);
            make.right.equalTo(self).with.offset(-5);
        }];
    }
    return self;
}

@end
